<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>FormDataKonsumenDanBarang</title>
<style type="text/css">
#apDiv1 {
	position: absolute;
	width: 968px;
	height: 165px;
	z-index: 1;
	left: 7px;
	overflow: visible;
}

#apDiv2 {
	position: absolute;
	width: 965px;
	height: 67px;
	z-index: 1;
	left: 9px;
	top: 185px;
	overflow: visible;
	background-color: #CCC8FB;
	font-size: 18px;
}
#apDiv3 {
	position: absolute;
	width: 967px;
	height: 484px;
	z-index: 1;
	left: 11px;
	top: 264px;
	overflow: visible;
	background-color: #CCC8FB;
}
#apDiv4 {
	position: absolute;
	width: 420px;
	height: 403px;
	z-index: 1;
	left: 489px;
	top: 747px;
}
#apDiv5 {
	position: absolute;
	width: 353px;
	height: 62px;
	z-index: 1;
	left: 4px;
	top: 266px;
	overflow: visible;
	background-color: #CCC8FB;
}
body {
	background-image: url();
	background-color: #6C4BF1;
}
#apDiv6 {	position: absolute;
	width: 450px;
	height: 407px;
	z-index: 1;
	left: 6px;
	top: 228px;
}
#apDiv7 {	position: absolute;
	width: 496px;
	height: 400px;
	z-index: 1;
	left: 471px;
	top: 257px;
}
#apDiv8 {	position: absolute;
	width: 397px;
	height: 407px;
	z-index: 1;
	left: 480px;
	top: 262px;
}
a {
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: bold;
	color: #FFCC00;
}
a:link {
	text-decoration: none;
	color: #F2F200;
}
a:visited {
	text-decoration: none;
	color: #F2F200;
}
a:hover {
	text-decoration: none;
	color: #000000;
}
a:active {
	text-decoration: none;
	color: #FFF;
}
body,td,th {
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}
</style>
</head>

<body>
<div id="apDiv1"><img src="Header.png" width="967" height="164" /></div>
<div id="apDiv2">
  <h2> &nbsp;&nbsp;&nbsp;Cetak Data Konsumen dan Barang</h2>
</div>

<div id="apDiv3">

  <h3> Data Konsumen Pengirim  </h3>
  <?php
  	$conn = oci_connect("zipzip", "zipzip", "//localhost/XE");
	if(!$conn) {
		echo "Gagal Konek ke database";
	}	
	$kd_pengiriman=$_GET['kd_pengiriman'];
  ?>
  <form action="" method="post">
  <table width="755" border="1">
    <tr>
      <td width="19">&nbsp;</td>
      <td width="107">Kd Pegiriman</td>
      <td width="174">Nama Pengirim</td>
      <td width="306">
        <label for="textfield">Alamat </label></td>
      <td width="127">No Telepon</td>
      </tr>
      <?php
      	$q="select * from data_konsumen_pengirim";
		$rs = oci_parse($conn,$q);
		oci_execute($rs);
		$dt=oci_fetch_assoc($rs);
		?>
    <tr>
      <td></td>
      <td><?php echo $dt["KD_PENGIRIMAN"]; ?></td>
      <td><?php echo $dt["NAMA"]; ?></td>
      <td><?php echo $dt["ALAMAT"]; ?></td>
      <td><?php echo $dt["NO_TELEPON"]; ?></td>
      </tr>
  </table>
  <h3>Data Konsumen Penerima</h3>
  <table width="755" border="1">
    <tr>
      <td width="19">&nbsp;</td>
      <td width="107">Kd Pegiriman</td>
      <td width="174">Nama Pengirim</td>
      <td width="306"><label for="textfield2">Alamat </label></td>
      <td width="127">No Telepon</td>
    </tr>
    <?php
      	$q2="select * from data_konsumen_penerima";
		$rs2 = oci_parse($conn,$q2);
		oci_execute($rs2);
		$dt2=oci_fetch_assoc($rs2);
	?>
    <tr>
      <td>&nbsp;</td>
      <td><?php echo $dt2["KD_PENGIRIMAN"]; ?></td>
      <td><?php echo $dt2["NAMA"]; ?></td>
      <td><?php echo $dt2["ALAMAT"]; ?></td>
      <td><?php echo $dt2["NO_TELEPON"]; ?></td>
    </tr>
  </table>
  <h3>Data Barang</h3>
  <table width="760" border="1">
    <tr>
      <td width="16">&nbsp;</td>
      <td width="155">Nama Barang</td>
      <td width="77">Jumlah</td>
      <td width="125"><label for="textfield3">Berat Persatuan</label></td>
      <td width="216">Layanan Service</td>
      <td width="145">Biaya</td>
    </tr>
    <?php
      	$q3="select * from data_barang";
		$rs3 = oci_parse($conn,$q3);
		oci_execute($rs3);
		$dt3=oci_fetch_assoc($rs3);
	?>
    <tr>
      <td>&nbsp;</td>
      <td><?php echo $dt3["NAMA_BARANG"]; ?></td>
      <td><?php echo $dt3["JUMLAH"]; ?></td>
      <td><?php echo $dt3["BERAT_PER_SATUAN"]; ?></td>
      <td><?php echo $dt3["LAYANAN_SERVICE"]; ?></td>
      <td><?php echo $dt3["BIAYA"]; ?></td>
    </tr>
  </table>
  <br>
  <table width="77" border="0">
    <tr>
      <td width="71" height="28" align="right"><input type="submit" name="submit" id="submit" value="Cetak"/></td>
      </tr>
</table> </form>
<form action="FormDataKonsumendanBarang.php">
  <table width="77" border="0">
    <tr>
      <td width="71" height="28" align="right"><input type="submit" name="submit2" id="submit2" value="Batal"/></td>
    </tr>
  </table>
 </form>
</div>
</body>
</html>
<?php
	function showFormBarang(){
		header("location:FormBarang.php");
	}
?>
